package com.hxkj.client.service;

import com.hxkj.domain.po.Column;
import com.hxkj.domain.po.OptionColumnTree;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @InterfaceName OptionColumnServiceClient
 * @Description TODO
 * @Author Mr.zheng
 * @Date 2018/6/30 9:58
 * @Version 1.0
 */
@FeignClient(name = "cms-article")
public interface OptionColumnServiceClient {


    /**
     * @return java.util.List<com.hxkj.domain.po.OptionColumnTree>
     * @author Mr.zheng
     * @Description getOptionColumnTreeList 解析分类树及其下面的文章列表
     * @Date 10:28 2018/6/30
     * @Param [column]
     **/
    @RequestMapping(value = "/optioncolumn/getlist", method = RequestMethod.POST, consumes = "application/json;charset=UTF-8")
    List<OptionColumnTree> getOptionColumnTreeList(@RequestBody Column column) throws Exception;


    /**
     * @return java.util.List<com.hxkj.domain.po.OptionColumnTree>
     * @author Mr.zheng
     * @Description getOptionColumnTreeList 根据分类ID或名称解析分类及其下面的文章列表
     * @Date 10:28 2018/6/30
     * @Param [column]
     **/
    @RequestMapping(value = "/optioncolumn/get", method = RequestMethod.POST, consumes = "application/json;charset=UTF-8")
    OptionColumnTree getOptionColumnTree(@RequestBody Column column) throws Exception;

    /**
     * @return java.util.List<com.hxkj.domain.po.OptionColumnTree>
     * @author Mr.zheng
     * @Description getOptionColumnTreeList 根据分类ID或名称解析分类及其下面的文章列表
     * @Date 10:28 2018/6/30
     * @Param [column]
     **/
    @RequestMapping(value = "/optioncolumn/getColumnTree", method = RequestMethod.POST, consumes = "application/json;charset=UTF-8")
    OptionColumnTree getColumnTree(@RequestBody Column column) throws Exception;
}
